/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projetlif13.model;

/**
 *
 * @author theo
 */
public abstract class Game3D extends Game {

    public Game3D(Player _p1, Player _p2) {
        super(_p1, _p2);
    }

    @Override
    public boolean canPlay() {
        for (int x = 0; x < gameBoard.width; x++) {
            for (int y = 0; y < gameBoard.height; y++) {
                for (int z = 0; z < gameBoard.depth; z++) {
                    if (gameBoard.getPIDByXYZ(x, y, z) == -1) {
                        return true;
                    }
                }
            }
        }
        return false;
    }
}
